import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { HttpClientModule, HTTP_INTERCEPTORS }    from '@angular/common/http'; // 不要引用错了哦
// -----------split line --------
import { AppComponent } from './app.component';
import { FcompComponent } from './fcomp/fcomp.component';
import { ScompComponent } from './scomp/scomp.component';
import { AppRoutingModule } from './/app-routing.module';
import { HttpTestCompComponent } from './http-test-comp/http-test-comp.component';
import { CusHttpInterceptor } from './cus-http-interceptor';
import { CommunicateCompComponent } from './communicate-comp/communicate-comp.component';
// import { StoreService } from './store-service';
@NgModule({
  declarations: [
    AppComponent,
    FcompComponent,
    ScompComponent,
    HttpTestCompComponent,
    CommunicateCompComponent
  ],
  imports: [
    BrowserModule,
    AppRoutingModule,
    FormsModule,
    HttpClientModule
  ],
  providers: [
    {provide: HTTP_INTERCEPTORS, useClass: CusHttpInterceptor, multi: true}
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
